package com.marvels;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;

import com.marvels.common.utils.MarvelsLogUtil;

/**
 * @author 毛小宁
 * @date 2018年4月10日
 */
@SpringBootApplication
@MapperScan({"com.**.dao", "com.**.repository"})
@ComponentScan(basePackages = {"com.fintech","com.dragon","com.marvels"})
@EnableAsync
@ImportResource(locations = { "classpath:transaction.xml", "classpath:batch-config.xml", "classpath:quartz-config.xml"})
public class MarvelsApplication {
	public static void main(String[] args) {
		SpringApplication.run(MarvelsApplication.class, args);
		MarvelsLogUtil.getInstance().info("启动成功");
	}
}
